package com.codingstudy.login.controller;

import com.codingstudy.login.ajaxMessage.AjaxMessage;
import com.codingstudy.login.domain.bo.LoginJwtBO;
import com.codingstudy.login.domain.bo.LoginUserBO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: wangzhengsheng@supcon.com
 * @Create: 2021/6/28 10:32
 */
@RestController
@RequestMapping({"/platform"})
@Api(
        tags = {"安全管理"}
)
public class SecurityController {
    @PostMapping({"login"})
    @ApiOperation(
            value = "用户名/手机号/邮箱--密码登录(session登录)",
            notes = "本api仅为swagger配置一个登录接口，实际登录是由前面的过滤器进行了处理"
    )
    public AjaxMessage login(@RequestBody LoginUserBO loginUserBO) {
        return null;
    }


    @PostMapping({"token/login"})
    @ApiOperation(
            value = "用户名/手机号/邮箱--密码登录(token登录)",
            notes = "本api仅为swagger配置一个登录接口，实际登录是由前面的过滤器进行了处理"
    )
    public AjaxMessage tokenLogin(@RequestBody LoginJwtBO loginJwtBO) {
        return null;
    }
}
